package com.yegs.hospital.controller;

import com.yegs.hospital.bo.ShowBo;
import com.yegs.hospital.common.Msg;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/show")
public class ShowController {

    @GetMapping("/get")
    public Msg get(){
        return Msg.success("show",ShowBo.whow);
    }

    @GetMapping("/change")
    public Msg change(){
        ShowBo.whow = !ShowBo.whow;
        return Msg.success();
    }



}
